﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Top.ascx.cs" Inherits="App.UserControl_Top" %>


<script type="text/javascript" language="javascript">
    function confirmLogout() {
        if (confirm("确定退出吗？")) {
            window.location.href = "<%=BLL.Common.Contexts.AppPath %>/LogOut.aspx";
        }
        else {
            return false;
        }
    }

</script>

<div class="top">
    <div id="logo" style="">
        <a href="#" runat="server" id="logoUrl" class="logotu"></a>        
    </div>    
    <asp:SiteMapPath ID="SiteMapPath1" runat="server" CssClass="setMap" PathSeparator=">>"
        PathSeparatorStyle-CssClass="mapSeparator">
    </asp:SiteMapPath>
    <div style="float:right;">
    <ul class="login_info" style="float:right;margin-right: 8px;"  id="LoginUl" runat="server" visible="false"> 
        <li>你好,<asp:Label ID="lbl_user" runat="server" style="color:Red"></asp:Label> 欢迎访问</li>          
        <li><a href="<%=BLL.Common.Contexts.AppPath %>/User/UserInfo.aspx?<%=BLL.Common.Contexts.UserPassportId %>=<%=BLL.Common.Contexts.GetEncrypt(AppAuthHelper.CurrentUserPassportId.ToString()) %>">个人设置|</a></li>
        <li><a href="mailto:272567663@163.com">联系我们|</a></li>        
        <li><a href="#" onclick="javascript:return confirmLogout();">退出</a></li>
        <%--<li><a href="#">帮 助</a><font color="#ffffff">|</font></li>--%>
       
    </ul>
    <ul class="login_info" style="float:right;margin-right: 8px;" id="vistorUl" runat="server">
        <li id="li1">
            <a href="<%=AppAuthHelper.GetLoginUrl() %>">登录 |</a></li>
        <li id="li2" runat="server"><a href="<%=BLL.Common.Contexts.AppPath %>/Register.aspx">注册 |</a></li>          
        <li><a href="mailto:272567663@163.com">联系我们</a></li> 
       
    </ul>
     </div>
    <div id="jsdivContorl" runat="server">
    </div>
    </div>